﻿using System.Collections.Generic;
using System.Collections.ObjectModel;

// Author: Miroslav Matula m.matula@alutam.cz 
// Date : 9.9.2010

namespace System.Windows.Controls
{
  
  public class SortDescriptionListOData : ObservableCollection<SortDescriptionOData>
  { }

  public class SortDescriptionOData
  {
    public SortDescriptionOData()
    {
      Direction = SortDescriptionDirectionOData.Ascending;
    }
    public SortDescriptionOData(string propertyName_, SortDescriptionDirectionOData direction_):this()
    {
      PropertyName = propertyName_;
      Direction = direction_;
    }
    public string PropertyName { get; set; }
    public SortDescriptionDirectionOData Direction { get; set; }
  }

  public enum SortDescriptionDirectionOData
  {
    Ascending = 0,
    Descending = 1,
  }
  
}
